\hypertarget{_tekdaqc___calibration_8c}{\section{Tekdaqc\-\_\-\-Calibration.\-c File Reference}
\label{_tekdaqc___calibration_8c}\index{Tekdaqc\-\_\-\-Calibration.\-c@{Tekdaqc\-\_\-\-Calibration.\-c}}
}


Implements the run time calibration processes.  


{\ttfamily \#include \char`\"{}Tekdaqc\-\_\-\-Debug.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Tekdaqc\-\_\-\-Calibration.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Tekdaqc\-\_\-\-Calibration\-Table.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Tekdaqc\-\_\-\-Command\-Interpreter.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Analog\-Input\-\_\-\-Multiplexer.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}A\-D\-C\-\_\-\-State\-Machine.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}A\-D\-S1256\-\_\-\-Driver.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Board\-Temperature.\-h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__tekdaqc__error_ga19df05d919ecca7a7501b35ae9080a32}{Tekdaqc\-\_\-\-Function\-\_\-\-Error\-\_\-t} \hyperlink{group__tekdaqc__calibration_ga8aa6dd97a6551e9ca12b12439eec2332}{Perform\-System\-Calibration} (void)
\begin{DoxyCompactList}\small\item\em Performs a self system calibration, determining offset values and base gain values. \end{DoxyCompactList}\item 
\hyperlink{group__tekdaqc__error_ga19df05d919ecca7a7501b35ae9080a32}{Tekdaqc\-\_\-\-Function\-\_\-\-Error\-\_\-t} \hyperlink{group__tekdaqc__calibration_ga65885f14ff00d87bd3ca21265e7d26f6}{Perform\-System\-Gain\-Calibration} (char keys\mbox{[}$\,$\mbox{]}\mbox{[}\hyperlink{group__command__parser_ga6147771b5547853f33eb838895e3d5a2}{M\-A\-X\-\_\-\-C\-O\-M\-M\-A\-N\-D\-P\-A\-R\-T\-\_\-\-L\-E\-N\-G\-T\-H}\mbox{]}, char values\mbox{[}$\,$\mbox{]}\mbox{[}\hyperlink{group__command__parser_ga6147771b5547853f33eb838895e3d5a2}{M\-A\-X\-\_\-\-C\-O\-M\-M\-A\-N\-D\-P\-A\-R\-T\-\_\-\-L\-E\-N\-G\-T\-H}\mbox{]}, uint8\-\_\-t count)
\begin{DoxyCompactList}\small\item\em Performs a system gain calibration with specified parameters. \end{DoxyCompactList}\item 
\hyperlink{group__data__types_ga0ecf26b576b9a54eca656b9be7ba6a06}{bool} \hyperlink{group__tekdaqc__calibration_gae09f531b1b83f3e80e981f14bfc27261}{is\-Tekdaqc\-\_\-\-Calibration\-Valid} (void)
\begin{DoxyCompactList}\small\item\em Determines if the calibration data in the F\-L\-A\-S\-H memory is valid or not. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements the runtime calibration processes of the Tekdaqc board. This includes things like system offset calibration and self gain calibration.

\begin{DoxyAuthor}{Author}
Jared Woolston (\href{mailto:jwoolston@tenkiv.com}{\tt jwoolston@tenkiv.\-com}) 
\end{DoxyAuthor}
\begin{DoxySince}{Since}
v1.\-0.\-0.\-0 
\end{DoxySince}


Definition in file \hyperlink{_tekdaqc___calibration_8c_source}{Tekdaqc\-\_\-\-Calibration.\-c}.

